package com.yunlinker.asba.WLWebView;

import android.content.Context;
import android.util.AttributeSet;
import android.webkit.WebView;

import com.yunlinker.asba.MainApplication;

/**
 * Created by lemon on 2017/6/17.
 */

public class WLWebView extends WebView {


    public WLWebView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    @Override
    public void destroy() {

        clearCache(true);
        clearFormData();
        clearMatches();
        clearSslPreferences();
        clearDisappearingChildren();
        clearHistory();
        //@Deprecated
        //clearView();
        clearAnimation();
        loadUrl("about:blank");
        removeAllViews();
        freeMemory();
        super.destroy();
    }
}
